//
//  WJNotificationManager.h
//  ows
//
//  Created by 王军 on 2017/8/22.
//  Copyright © 2017年 ows. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define kUserInfoChanged       @"kUserInfoChanged"
#define kUserLogout            @"kUserLogout"
#define kUserLogin             @"kUserLogin"
#define kDeviceChange          @"kDeviceChange"
#define kSideShow              @"kSideShow"
#define kSideHidden            @"kSideHidden"
#define kRoomChanged           @"kRoomChanged"
#define kRootRefresh           @"kRootRefresh"
#define kTimerChange           @"kTimerChange"
#define kCurrentRoomChange     @"kCurrentRoomChange"
#define kWeatherCityChange    @"kWeatherCityChange"


@interface WJNotificationManager : NSObject

+(WJNotificationManager *)shareInstance;

-(void)addObserver:(id)target kName:(NSString *)kName object:(id)object callback:(void (^)(NSNotification *result))callback;
-(void)removeObserver:(id)target;
-(void)removeObserver:(id)target kName:(NSString *)kName;
-(void)noticeAction:(NSNotification *)sender;
-(void)sendNotification:(NSString *)kName;
-(void)sendNotification:(NSString *)kName object:(id)object userInfo:(NSDictionary *)userInfo;
-(void)sendNotification:(NSString *)kName debounce:(CGFloat)delay;

@end
